package com.tulele.vtool.mapper;

import com.tulele.vtool.model.BrandPromotionPayUserInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component(value = "brandPromotionPayUserInfoMapper")
public interface BrandPromotionPayUserInfoMapper {

    /**
     * 添加品牌付费用户信息
     * @param brandPromotionPayUserInfo
     * @return
     */
    int addBrandPromotionPayUserInfo(BrandPromotionPayUserInfo brandPromotionPayUserInfo);

    /**
     * 更新品牌付费用户信息
     * @param record
     * @return
     */
    int updBrandPromotionPayUserInfo(BrandPromotionPayUserInfo record);

    /**
     * 20200519 yl
     * 通过品牌代理人id查询用户付费信息
     * @param userId
     * @return
     */
    List<BrandPromotionPayUserInfo> getPromotionPayByUserId(@Param("brandAgentId") String userId);
}